package com.clientes;

import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.ExecutionException;

import org.json.JSONArray;
import org.json.JSONException;

import android.content.Context;
import android.net.ParseException;
import android.util.Log;

import com.eventos.EventoBean;

import com.eventssmartphone.JSONReader;
import com.eventssmartphone.JSONReaderListener;

public class GestorEventoFavoritos {
	private static final GestorEventoFavoritos gestor = new GestorEventoFavoritos();

public static GestorEventoFavoritos getInstance(){
	return gestor;
}


public void dameFavoritoJson(Context context, int idCliente, int idEvento){
	
	JSONReader jReader = new JSONReader();
	jReader.setJSONReaderListener((JSONReaderListener)context);
	jReader.execute("http://200.16.7.112:3000/client_management/clients/esta_en_favoritos/"+idCliente + "/" + idEvento +".json");
}

public int procesarDameFavorito(JSONArray jRating){
	
	if (jRating.length() == 0){
		return 0;
	}
	else 
	{return 1;
		}

}
		
	
}
